package com.xebia.lightning.converter;

import org.springframework.core.convert.converter.Converter;

import com.mongodb.BasicDBObject;
import com.mongodb.DBObject;

public class LocationJobCountVOWriterConverter implements Converter<LocationJobCountVO, DBObject> {

    @Override
    public DBObject convert(LocationJobCountVO source) {
        DBObject dbo = new BasicDBObject();
        dbo.put("_id", source.getId());
        dbo.put("value", source.getValue());
        return dbo;
    }

}
